import Dashboard from "../views/dashboard";
import IntentionalForm from "../views/inputView";
import IntentionalList from "../views/intentional";
import Login from "../views/login";

export interface PathArrayItem {
    path: string
    view: () => JSX.Element
    title: string
    exact?: boolean
}

export const pathName = {
    DEFAULT: '/',
    DASHBOARD: '/dashboard',
    LOGIN: '/login',
    INTENTIONALLIST: '/intentionalList',
    ENTRYINPUT: '/intent',
}

export const paths: Array<PathArrayItem> = [
    { path: pathName.DEFAULT, view: Dashboard, title: '首页', exact: true },
    { path: pathName.DASHBOARD, view: Dashboard, title: '首页', exact: true },
    { path: pathName.LOGIN, view: Login, title: '登录' },
    { path: pathName.INTENTIONALLIST, view: IntentionalList, title: '待进件列表' },
    { path: pathName.ENTRYINPUT, view: IntentionalForm, title: '进件录入' },
]